package com.citywithincity.pay;

import java.util.Date;

public class OrderInfo {
	/**
	 * 实际支付日期
	 */
	private String date;				//订单日期  ,有些系统有 yyyyMMdd
	private String orderId;  			//订单id,系统订单id,商户订单id
	private PayStatus payStatus;		//支付状态
	private String platId;				//平台id,支付系统订单id  ,一般有
	private Integer fee;				//订单金额
	private Integer realFee;			//实际支付金额，如有的话
	
	/**
	 * 实际支付时间
	 */
	private Date payTime;			//格式统一为 yyyyMMddhhmmss
	
	public String toString(){
		return new StringBuilder("{").append("order_id").append(":").append(getOrderId()).append(',')
				.append("status").append(":").append(getPayStatus()).append(',')
				.append("plat_id").append(":").append(getPlatId()).append(',')
				.append("fee").append(":").append(getFee())
				.append("payTime").append(":").append(getPayTime())
				.append("}").toString();
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public PayStatus getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(PayStatus payStatus) {
		this.payStatus = payStatus;
	}

	public String getPlatId() {
		return platId;
	}

	public void setPlatId(String platId) {
		this.platId = platId;
	}

	public Integer getFee() {
		return fee;
	}

	public void setFee(Integer fee) {
		this.fee = fee;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Integer getRealFee() {
		return realFee;
	}

	public void setRealFee(Integer realFee) {
		this.realFee = realFee;
	}
}
